package a8;

import java.util.Scanner;

public class NewtonRunner {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("Insert n");
		int n = input.nextInt();
		System.out.println("Insert a");
		int a = input.nextInt();
		
		NewtonRaphson newtonRaphson = new NewtonRaphson(a, n);
		
		while (newtonRaphson.hasMoreGuesses()) {
			System.out.println(newtonRaphson.nextGuess());
		}

	}

}
